package utils

import (
	"fmt"
	"os"
	"path/filepath"
)

// init
// 初始化
func init() {
	execPath, err := os.Executable()
	if err != nil {
		fmt.Println("get exec path error: ", err)
		os.Exit(1)
	}
	ExecPath = execPath
	ExecFilename = filepath.Base(execPath)
	LocalDir = filepath.Dir(execPath)
}
